using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars;

namespace MailSenderPro
{
    public partial class RibbonForm1 : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        public RibbonForm1()
        {
            InitializeComponent();
        }

        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
            Forms.FrmMailList frm = new MailSenderPro.Forms.FrmMailList();

            frm.MdiParent = this;
            frm.Show(); 
        }

        private void ribbon_Click(object sender, EventArgs e)
        {

        }

        private void RibbonForm1_Load(object sender, EventArgs e)
        {
            
        }

        private void RibbonForm1_MdiChildActivate(object sender, EventArgs e)
        {
            bbtnKaydet.Enabled = (this.ActiveMdiChild is Util.IKaydedilebilir);                 
        }

        private void bbtnKaydet_ItemClick(object sender, ItemClickEventArgs e)
        {
            (this.ActiveMdiChild as Util.IKaydedilebilir).Save();
        }

        private void barButtonItem1_ItemClick_1(object sender, ItemClickEventArgs e)
        {
            var frm = new Forms.FrmSmtpList();

            frm.MdiParent = this; 
            frm.Show(); 
        }
    }
}